from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from postion import options
from postion import service

driver = webdriver.Chrome(options=options,service=service)
driver.get(r'https://www.baidu.com/')
driver.maximize_window()
sleep(3)

driver.find_element(By.CLASS_NAME,'soutu-btn').click()
driver.find_element(By.CLASS_NAME,'upload-pic').send_keys(r'D:\测试工具\python_pro\python_230901\homework\wangjiacheng\0103_浏览器常用操作\下载.jpg')
sleep(10)

driver.quit()